/ leetcodesolve / Toph.co / GPA Calculator.py
swadhinbiswas update · 2/6/2025
a12e9e9
16 lines · 299 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def solve(x,n):
    result=sum(x)/n
    return result



if __name__=="__main__":
    testcase=int(input())
    for i in range(testcase):
        n=int(input())
        x=[]
        for i in range(n):
            x.append(input())
        result=solve(x,n)
        print(f"Case {i}: {result:.3f} ")